<template>
	<view class="p-10">
		<view class="card">
			<u-cell-group>
				<u-cell title="姓名" :value="userInfo?.userName"></u-cell>
				<u-cell title="工号" :value="userInfo?.id"></u-cell>
				<u-cell title="岗位" :value="userInfo?.position"></u-cell>
				<u-cell title="职位" :value="userInfo?.duty"></u-cell>
				<u-cell title="区队" :value="userInfo?.team"></u-cell>
				<u-cell title="科室" :value="userInfo?.room"></u-cell>
			</u-cell-group>
		</view>
	</view>
</template>
<script setup>
import { infoUserProfile } from '@/api/public.js';
import { ref } from 'vue';

let userInfo = ref();
infoUserProfile().then((res) => {
	userInfo.value = res.data?.user;
});
</script>
<style></style>
